import 'package:flutter_time_manager/state/model/todo_collect.dart';

class UserInfo {
  int id;
  String avatar;
  String name;
  String note;

  UserInfo({this.id, this.avatar, this.name, this.note});

  static UserInfo fromMap(Map<String, dynamic> map) {
    return UserInfo(
      id: map["id"],
      avatar: map["avatar"],
      name: map["name"],
      note: map["note"],
    );
  }
}


